package com.atguigu.chapter01.vars

object VarDemo01 {
  def main(args: Array[String]): Unit = {
    //编译器，动态的 (逃逸分析)
    val age: Int = 10
    val sal: Double = 10.9
    val name: String = "tom"
    val isPass: Boolean = true
    //在scala中，小数默认为Double ,整数默认为Int
    val score: Float = 70.9f
    println(s"$age $isPass ${sal + 10} $name ${score + 10}")
  }
}
